//
//  UI_Optional_VC.swift
//  APSwift
//
//  Created by jianbo.pei on 2023/7/22.
//

import UIKit

class UI_Optional_VC: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        // Do any additional setup after loading the view.
        testForm()
    }

}

extension UI_Optional_VC {
    func testForm() {
        let shortForm: Int? = Int("42")
        let longForm: Optional<Int> = Int("42")
        debugPrint("shortForm is \(String(describing: shortForm))")
        debugPrint("longForm is \(String(describing: longForm))")
    }
    /**
     "shortForm is Optional(42)"
     "longForm is Optional(42)"
     */
}
